package com.uhu.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 员工表
 * </p>
 *
 * @author liujunjie
 * @since 2024-01-04
 */
@TableName("t_staff")
@ApiModel(value = "Staff对象", description = "员工表")
public class Staff implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("员工ID")
    @TableId(value = "staff_id", type = IdType.AUTO)
    private Long staffId;

    @ApiModelProperty("员工名称")
    private String staffName;

    @ApiModelProperty("员工工号")
    private String staffCode;

    @ApiModelProperty("员工性别。0-未知，1-男，2-女")
    private Integer staffSex;

    @ApiModelProperty("员工手机号码")
    private String staffMobile;

    @ApiModelProperty("员工邮箱")
    private String staffEmail;

    @ApiModelProperty("员工状态。0-在职，1-离职")
    private Integer staffStatus;

    @ApiModelProperty("创建人")
    private String createBy;

    @ApiModelProperty("创建时间")
    private LocalDateTime dateCreated;

    @ApiModelProperty("更新人")
    private String updateBy;

    @ApiModelProperty("修改时间")
    private LocalDateTime lastUpdated;

    public Long getStaffId() {
        return staffId;
    }

    public void setStaffId(Long staffId) {
        this.staffId = staffId;
    }

    public String getStaffName() {
        return staffName;
    }

    public void setStaffName(String staffName) {
        this.staffName = staffName;
    }

    public String getStaffCode() {
        return staffCode;
    }

    public void setStaffCode(String staffCode) {
        this.staffCode = staffCode;
    }

    public Integer getStaffSex() {
        return staffSex;
    }

    public void setStaffSex(Integer staffSex) {
        this.staffSex = staffSex;
    }

    public String getStaffMobile() {
        return staffMobile;
    }

    public void setStaffMobile(String staffMobile) {
        this.staffMobile = staffMobile;
    }

    public String getStaffEmail() {
        return staffEmail;
    }

    public void setStaffEmail(String staffEmail) {
        this.staffEmail = staffEmail;
    }

    public Integer getStaffStatus() {
        return staffStatus;
    }

    public void setStaffStatus(Integer staffStatus) {
        this.staffStatus = staffStatus;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public LocalDateTime getDateCreated() {
        return dateCreated;
    }

    public void setDateCreated(LocalDateTime dateCreated) {
        this.dateCreated = dateCreated;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public LocalDateTime getLastUpdated() {
        return lastUpdated;
    }

    public void setLastUpdated(LocalDateTime lastUpdated) {
        this.lastUpdated = lastUpdated;
    }

    @Override
    public String toString() {
        return "Staff{" +
            "staffId = " + staffId +
            ", staffName = " + staffName +
            ", staffCode = " + staffCode +
            ", staffSex = " + staffSex +
            ", staffMobile = " + staffMobile +
            ", staffEmail = " + staffEmail +
            ", staffStatus = " + staffStatus +
            ", createBy = " + createBy +
            ", dateCreated = " + dateCreated +
            ", updateBy = " + updateBy +
            ", lastUpdated = " + lastUpdated +
        "}";
    }
}
